#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMessageBox>
#include <QDebug>
#include "logreg.h"
#include "manager.h"
#include "showque.h"
#include "database.h"
#include "showsurvey.h"
#include <QTcpServer>
#include <QTcpSocket>
#include <QSqlQuery>
#include <QSqlError>
#include <QVBoxLayout>
#include <QTableWidget>
#include <QPushButton>
#include <QDialog>
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
#include <QButtonGroup>
#include <QRadioButton>
#include <QDateTime>
#include <QJsonDocument>
#include <QJsonArray>
#include <QJsonObject>
#include <QByteArray>
#include <QScrollArea>
#include <QGroupBox>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_manager_clicked();

    void on_pushButton_search_clicked();

    void on_pushButton_show_clicked();

    void on_pushButton_exit_clicked();
    void show_back();
    void back();

    void new_connect();
    void recv_data();


    void on_pushButton_clicked();



private:
    Ui::Widget *ui;
    QSqlDatabase db;
    QTcpServer *server;
    QTcpSocket *socket;
    LogReg *userpage;
    bool log_state;
    manager *man;
    ShowQue *show_que;
    Showsurvey *survey;
};
#endif // WIDGET_H
